<?php
namespace Home\Controller;
use Think\Controller;
class ShowController extends Controller {
    public function getShows(){

        // $m_id = $_GET['m_id'];

        $shows = M('shows');
        $data = $shows -> order("s_id")->select();

        echo json_encode($data);
         echo "<br>";

    }
    public function getShowById(){


        $getShowById = M('shows');
        $data = $getShowById -> find($s_id);

        echo json_encode($data);
         echo "<br>";

    }

    
    public function showDelete(){


        $shows = M('shows');
        $data = $shows->where('s_id=141101')->delete(); ;

        echo json_encode($data);
         echo "<br>";

    }

}
?>
